package com.example.myblog.service;

import com.example.myblog.entity.Follow;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.myblog.exception.BaseException;

import java.util.List;

/**
 * <p>
 * 关注表 服务类
 * </p>
 *
 * @author 叶兴
 * @since 2022-09-29
 */
public interface FollowService extends IService<Follow> {

    int followUser(String followName) throws BaseException;

    Follow ifFollow(String username,String followName) ;

    int cancel(String followName) throws BaseException;

    List<Follow> getFollows() throws BaseException;
}
